home *** CD-ROM | disk | FTP | other *** search
/ Aminet 44 / Aminet 44 (2001)(GTI - Schatztruhe)[!][Aug 2001].iso / Aminet / game / patch / WHDIGamesA-B.lzh / Aquanaut.lha / AquanautHD / Install-Game < prev    next >
Text File  |  1999-05-15  |  3KB  |  163 lines

  1. (set #CI_unit 0)
  2. (set #CI_drive ("DF%ld:" #CI_unit))
  3. (set #readme "aquant")            ; %shd.readme
  4. ;----------------------------
  5.  
  6. ;try to figure out a place where the user usually installs his games
  7. (if (exists "Games:" (noreq) )
  8.     (set @default-dest "Games:")
  9.     (if (exists "SYS:Games" (noreq) )
  10.         (set @default-dest "SYS:Games")
  11.         (if (exists "Work:Games" (noreq) )
  12.             (set @default-dest "Work:Games")
  13.             (if (exists "JEUX:" (noreq) )
  14.                (set @default-dest "JEUX:")
  15.                (set @default-dest "SYS:")
  16.             )
  17.         )
  18.     )
  19. )
  20.  
  21. (message "\n\n\nThis loader requires either JST or WHDLoad (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST and WHDLoad are available from aminet (game/patch)")
  22.  
  23. (set @default-dest
  24. (askdir
  25.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  26.     (help @askdir-help)
  27.     (default @default-dest)
  28.     (disk)
  29. )
  30. )
  31. (set #dest (tackon @default-dest @app-name))
  32. (set #CI_unit
  33.     (askchoice
  34.         (prompt "From which disk unit do you want\nto install the game")
  35.         (help    @askoptions-help)
  36.         (choices
  37.            "DF0:"
  38.            "DF1:"
  39.            "DF2:"
  40.            "DF3:"
  41.         )
  42.     )
  43. )
  44.  
  45. (set #CI_drive ("DF%ld:" #CI_unit))
  46.  
  47. (set #Game_Ver
  48.     (askchoice
  49.         (prompt "Which version of the loader do you wish to install")
  50.         (help    @askoptions-help)
  51.         (choices
  52.            "JST"
  53.            "WHDLoad"
  54.            "Both"
  55.         )
  56.     )
  57. )
  58. (set #Game_V
  59.     (askchoice
  60.         (prompt "Which version of the game do you want to install")
  61.         (help    @askoptions-help)
  62.         (choices
  63.            "F1 Licenceware"
  64.            "Amiga Format"
  65.         )
  66.     )
  67. )
  68.  
  69. (makedir #dest
  70.     (help @makedir-help)
  71.     (infos)
  72. )
  73.  
  74. ;----------------------------
  75. (makedir 
  76.   (tackon #dest "data")
  77.   (help @makedir-help)
  78. )
  79. (if (= #Game_Ver 2)
  80. (copyfiles
  81.   (help @copyfiles-help)
  82.   (source ("JHD.inf"))
  83.   (newname ("JST-%sHD.info" @app-name ))
  84.   (dest #dest)
  85. ))
  86. (if (= #Game_Ver 2)
  87. (copyfiles
  88.   (help @copyfiles-help)
  89.   (source ("HD"))
  90.   (newname ("JST-%sHD" @app-name ))
  91.   (dest #dest)
  92. ))
  93. (if (= #Game_Ver 2)
  94. (copyfiles
  95.   (help @copyfiles-help)
  96.   (source ("WHD.inf"))
  97.   (newname ("WHD-%sHD.info" @app-name ))
  98.   (dest #dest)
  99. ))
  100. (if (= #Game_Ver 2)
  101. (copyfiles
  102.   (help @copyfiles-help)
  103.   (source ("HD.slave" ))
  104.   (newname ("%sHD.slave" @app-name ))
  105.   (dest #dest)
  106. ))
  107. (if (= #Game_Ver 0)
  108. (copyfiles
  109.   (help @copyfiles-help)
  110.   (source ("JHD.inf"))
  111.   (newname ("JST-%sHD.info" @app-name ))
  112.   (dest #dest)
  113. ))
  114. (if (= #Game_Ver 0)
  115. (copyfiles
  116.   (help @copyfiles-help)
  117.   (source ("HD"))
  118.   (newname ("JST-%sHD" @app-name ))
  119.   (dest #dest)
  120. ))
  121. (if (= #Game_Ver 1)
  122. (copyfiles
  123.   (help @copyfiles-help)
  124.   (source ("WHD.inf"))
  125.   (newname ("WHD-%sHD.info" @app-name ))
  126.   (dest #dest)
  127. ))
  128. (if (= #Game_Ver 1)
  129. (copyfiles
  130.   (help @copyfiles-help)
  131.   (source ("HD.slave" ))
  132.   (newname ("%sHD.slave" @app-name ))
  133.   (dest #dest)
  134. ))
  135. (copyfiles
  136.   (help @copyfiles-help)
  137.   (source ("%shd.readme" #readme))
  138.   (dest #dest)
  139. )
  140. (copyfiles
  141.   (help @copyfiles-help)
  142.   (source ("%shd.readme.info" #readme))
  143.   (dest #dest)
  144. )
  145. (message ("\nInsert %s into drive %s !" @app-name #CI_drive))
  146. (if (= #Game_V 0)
  147.     (if
  148.         (= 0 (run ("AquanautFileImager %ld \"%s/data/\" >con:0/0/450/200//CLOSE/WAIT" #CI_unit #dest)))
  149.         ("")
  150.         (abort "\"AquanautFileImager\" must be in your PATH !")
  151.     )
  152. )
  153. (if (= #Game_V 1)
  154.     (if
  155.         (= 0 (run ("AquanautFileImager_AF %ld \"%s/data/\" >con:0/0/450/200//CLOSE/WAIT" #CI_unit #dest)))
  156.         ("")
  157.         (abort "\"AquanautFileImager\" must be in your PATH !")
  158.     )
  159. )
  160.  
  161. (exit)
  162.  
  163.